CC = gcc
CFLAGS = -Wall -g

OBJS = main.o add.o sub.o mul.o div.o

calculator: $(OBJS)
	$(CC) $(CFLAGS) -o calculator $(OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f *.o calculator
